<?php
/**
 * #Celebrate Shieh
 *             ,%%%%%%%%,
 *           ,%%/\%%%%/\%%
 *          ,%%%\c "" J/%%%
 * %.       %%%%/ o  o \%%%
 * `%%.     %%%%    _  |%%%
 *  `%%     `%%%%(__Y__)%%'
 *  //       ;%%%%`\-/%%%'
 * ((       /  `%%%%%%%'
 *  \\    .'          |
 *   \\  /       \  | |
 *    \\/         ) | |
 *     \         /_ | |__
 *     (___________))))))) 攻城湿
 *
 *        _       _
 * __   _(_)_   _(_) __ _ _ __
 * \ \ / / \ \ / / |/ _` |'_ \
 *  \ V /| |\ V /| | (_| | | | |
 *   \_/ |_| \_/ |_|\__,_|_| |_|
 */
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFormatTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('formats', function (Blueprint $table) {
            $table->increments('id');
            $table->longText('picture')->nullable()->comment('允许上传的图片格式');
            $table->integer('picture_size')->default(0)->comment('允许上传的图片大小');
            $table->integer('picture_cate')->default(0)->comment('允许上传的图片大小MB,TB...');
            $table->longText('file')->nullable()->comment('允许上传的文件格式');
            $table->integer('file_size')->default(0)->comment('允许上传的文件大小');
            $table->integer('file_cate')->default(0)->comment('允许上传的文件大小MB,TB...');
            $table->longText('text')->nullable()->comment('允许上传的文本格式');
            $table->integer('text_size')->default(0)->comment('允许上传的文本大小');
            $table->integer('text_cate')->default(0)->comment('允许上传的文本大小MB,TB...');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('formats');
    }
}
